package com.business.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.business.system.vo.*;
import com.common.untils.CommonResult;


import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author pgx
 * @since 2022-08-31
 */
public interface IShopService{
    CommonResult findAllShop(ShopVo shopVo);

    CommonResult detailedMsg(Integer id);

    CommonResult editStart(Integer start, Integer id);

    CommonResult findByIdShopMsg(Integer id);

    IPage<Map> shopAndGoods(Integer currentPage, Integer pageSize,  HomeGoodsType HomeGoodsType);

    CommonResult findByZidAll(Integer id);
    CommonResult selectShopMsgByBid(String homeToken);

    CommonResult updateShopMsgByBid(String homeToken, ShopAndBussinessVo shopAndBussinessVo);

    CommonResult findGoodsBySid(String homeToken, GoodsVo goodsVo);

    CommonResult updateGoodsState(Integer state, Integer id);

    CommonResult addGoodsToShop(String gid, GoodsShopVo goodsShopVo, String homeToken);

    CommonResult findByShopId(Integer id);

    CommonResult findByshopIdAllGoods(Integer pageCurrent, Integer pageSize, Integer shopId, Map<String, Object> names);
}
